import request from '@/utils/http'

// 获取地址接口
export const getAddressList = () => {
    return request({
        url: '/member/address',
        method: 'get'
    })
}


// 添加地址接口
export const addAddressApi = (address:any) => {
    request({
        url: '/member/address',
        method: 'post',
        data:address
    })

}

//删除地址接口
export const deleteAddress = (id:any) => {
    return request({
        url: '/member/address/{id}',
        method: 'delete',
        data: {
            id
        }
    })
}

// 修改地址接口 
export const updateAddress = (id:any) => {
    return request({
        url: '/member/address/${id}',
        method: 'put',
        data: {
            id
        }
    })
}
